package com.qinglei.recoup.system.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 微信用户表
 *
 * @author dqh
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_user_wechat")
@ApiModel(value="UserWechat对象", description="微信用户表")
public class UserWechat implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id主键")
            @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "微信openId")
    @NotEmpty
    private String openId;

    @ApiModelProperty(value = "微信昵称")
    @NotEmpty
    private String wechatNick;

    @ApiModelProperty(value = "生日")
    @NotNull
    private LocalDate birthday;

    @ApiModelProperty(value = "是否删除：0-未删除 1-已删除")
    @TableLogic
    private Integer isDeleted;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;



}
